package pandora.data;

import java.util.Date;
import java.util.List;

import pandora.dto.PriceDTO;
import pandora.dto.ProductDTO;
import pandora.dto.StoreDTO;

public interface ISearchDAO {
	//Metodos DCC
	public List<ProductDTO> selectAllSearchedProductsAtStore(String snif);
	public Integer countSearchedProductAtStore(String snif, String pbarcode);
	public List<ProductDTO> selectAllSearchedProductsAtStoreBetween(String snif, Date d1, Date d2);
	public Integer countSearchedProductAtStoreBetween(String snif, String pbarcode, Date d1, Date d2);
	
	public List<ProductDTO> selectAllSearchedCustomerProducts(String cdni);
	public Integer countSearchedCustomerProduct(String cdni, String pbarcode);
	public List<ProductDTO> selectAllSearchedCustomerProductsBetween(String cdni, Date d1, Date d2);
	public Integer countSearchedCustomerProductBetween(String cdni, String pbarcode, Date d1, Date d2);
	//Fin Metodos DCC
	//AVC
	public void saveSearch(ProductDTO product, String user, Date date);
	
}
